<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    
    <title>代理商管理</title>
   <link href="${ctx}/style/style.css" rel="stylesheet" type="text/css" />
   <script language="JavaScript" src="${ctx}/scripts/jquery.js"></script>
   <script type="text/javascript">
   		function expDate(){
			window.location.href = "Agentaccountinfo_expDate.action";
   		}
   </script>
  </head>
  
  <body>
   	<div class="place" >
	    <span>位置：</span>
	    <ul class="placeul">
	    	<li><a href="#">代理商管理</a></li>
	    </ul>
    </div>
    
   	<div class="rightinfo">
    <div class="tools">
    	<ul class="toolbar1"  >
        	<li onclick="expDate()"><span><img src="${ctx}/images/ico04.png" width="24" /></span>导出数据</li>
        </ul>
    </div>
    	
    <table class="imgtable" id="imgtable" style="width: 99%">
	    <thead>
		    <tr>
		    	<th align="center">编号</th>
			    <th align="center">用户名</th>
			    <th align="center">真实姓名</th>
			    <th align="center">联系电话</th>
			    <th align="center">账户余额</th>
			    <th align="center">注册录时间</th>
			    <th align="center">当前状态</th>
			    <th align="center">最后登录时间</th>
			    <th align="center">地址</th>
		    </tr>
	    </thead>
	    <tbody>
	    	<s:if test="agentList==null || agentList.isEmpty()">
				<tr class="toolbar" height="25">
					<td colspan="10" align="left" height="25px">
						<font color="red">提示：未查询到数据!</font>
					</td>
				</tr>
			</s:if>
			<s:else>
				<s:iterator id="c" value="agentList" status="loop">
					<tr >
					    <td width="40"><s:property  value="#loop.index+1" />&nbsp;</td>
					    <td><s:property  value="#c.username" />&nbsp;</td>
					    <td><s:property  value="#c.truename" />&nbsp;</td>
					    <td><s:property  value="#c.mobilephone" />&nbsp;</td>
					    <td ><s:property  value="#c.accountmoney" />&nbsp;</td>
					    <td ><s:date name="#c.registertime" format="yyyy-MM-dd HH:mm:ss"/></td>
					    <td >
							<s:if test="#c.shenhe == 0">
								审核中
							</s:if>
							<s:else>
								<s:if test="#c.lock == 0">
									正常
								</s:if>
								<s:else>
									锁定
								</s:else>
							</s:else>
						</td>
					    <td ><s:date name="#c.lastlogintime" format="yyyy-MM-dd HH:mm:ss"/></td>
					    <td>
					    	<s:property  value="#c.addr" /> &nbsp;
					    </td>
				    </tr>
				</s:iterator>
			</s:else>
	    </tbody>
    </table>
    <div class="pagin">
    	<div class="message">
			共
			<s:property value="totalCount" />
			条记录&nbsp;共
			<s:property value="totalPage" />
			页&nbsp;当前第
			<s:property value="currentPage" />
			页&nbsp;
		</div>
        <ul class="paginList">
	        <li class="paginItem">
				<pagetag:pages currentPage="${currentPage}"
					totalPage="${totalPage}" styleClass="page" theme="text">
					<input type="hidden" name="callpaymentrecord.start_time"
						value="${callpaymentrecord.start_time}" />
					<input type="hidden" name="callpaymentrecord.end_time"
						value="${callpaymentrecord.end_time}" />
				</pagetag:pages>
			</li>
        </ul>
    </div>
   
	<script type="text/javascript">
		$('#imgtable tr:odd').addClass('odd');
	</script>
	
	<div id="loading" style="position:absolute; display:none; left:-1px; top:1px; width:100%; height:100%; background-color:#FFFFFF; 
			filter:alpha(opacity=50);-moz-opacity:0.5; -khtml-opacity: 0.5;opacity: 0.5; z-index:1000;"> 
		<div  style="position:absolute;left:180px;top:150px;width:100px;height:100px;background-color:#FFFFFF; z-index:9001;" >
			<img alt="" id="wait1" src="${ctx}/images/loading.gif" >
		</div>
	</div>
	
  </body>
</html>
